package com.jxmcloud.business.cut.feign.xuanle;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author liutao
 * @date 20200831
 */
@FeignClient(value="business-xuanle-service", path="/", configuration= XuanleClient.XuanleRemoteClientConfiguration.class, fallbackFactory= XuanleClientFallbackFactory.class)
public interface XuanleClient {

    class XuanleRemoteClientConfiguration {
        @Bean
        public XuanleClientFallbackFactory xuanleClientFallbackFactory() {
            return new XuanleClientFallbackFactory();
        }
    }

    /***
    * @Description: 远程调用玄乐 获取用户信息
    * @param loginName 玄乐账号
    */
    @PostMapping("/remote/memberInfo/getUserInfoByLoginName")
    String getUserInfoByLoginName(@RequestParam("loginName") String loginName);
}
